<div class="holder">
	<div class="box">
		<div class="title"> 
			<h2>提示信息:</h2> 
			<img class="toggle" src="<?php echo $Theme_Root?>/images/title-hide.gif"> 
		</div>
		<div class="content messages">
			<?php
				switch($type){
					case 'successful':
						echo '<div class="message green">';
						break;
					case 'warning':
						echo '<div class="message orange">';
						break;
					case 'error':
						echo '<div class="message red">';
						break;
					default:
						echo '<div class="message blue">';
						break;
				}
				echo $msg;
			?>		
					<img src="<?php echo $Theme_Root?>/images/icon-close.gif" alt="Close this item"> 
				</div>
		</div>
	</div>
</div>
<script type="text/javascript">
/**
 * 页面跳转
 */
function skip_to(redirect_url){
	setTimeout(function(){
		window.location.href = redirect_url;
	},2000);
}
<?php
 if ($redirect_url){
 	echo "skip_to('".$redirect_url."');";
 }
?>
</script>